export default{
  namespaced: true,
  state: {
    formItems:[
      {
        label:"单行文本",
        value:"input",
        listClass:"danger"
      },
      {
        label:"多行文本",
        value:"textarea",
        listClass: "primary"
      },
      {
        label:"日期",
        value:"date",
        listClass: "success"
      },
      {
        label:"时间",
        value:"time",
        listClass: "success"
      },
      {
        label:"下拉框",
        value:"select",
        listClass: "success"
      },
      {
        label:"附件",
        value:"upload",
        listClass: "success"
      },
      {
        label:"单选",
        value:"radio",
        listClass: "success"
      },
      {
        label:"选择框",
        value:"dialogList",
        listClass: "success"
      },
      {
        label:"开关",
        value:"Switch",
        listClass: "success"
      },
      {
        label:"计数器",
        value:"inputNumber",
        listClass: "success"
      },
      {
        label:"复选框",
        value:"checkbox",
        listClass: "success"
      }
    ],
    optionStatus:[
      {
        label:"表单应用",
        value:"0",
        listClass:"primary"
      },
      {
        label:"SQL应用",
        value:"1",
        listClass: "warning"
      },
      {
        label:"接口应用",
        value:"2",
        listClass: "success"
      }
    ],
    tableColumns: [
      {
        label: '序号',
        prop: 'index',
        width:'50px'
      },
      {
        label: '图标',
        prop: 'icon'
      },
      {
        label: '应用名称',
        prop: 'name'
      },
      {
        label: '创建时间',
        prop: 'createTime'
      },
      {
        label: '应用类型',
        prop: 'applicationType',
        width:'80px'
      },
      {
        label: '操作',
        prop: 'operation',
        width: '150px'
      }
    ],
  },
  getters:{
    formItems:state=>{
      return state.formItems;
    },
    optionStatus:state=>{
      return state.optionStatus;
    },
    tableColumns:state=>{
      return state.tableColumns;
    },
  }
}
